var mongoose =require('mongoose')

var Schema=mongoose.Schema

mongoose.connect('mongodb://localhost/myitcast')

 var modelSchema=new Schema({
        name:{
        type:String,
        required:true  //表示必须有username这项
       },
       password:{
        type:String,
        required:true
       },
       email:{
         type:String,
          required:true

       },
       msg:{
         type:String,
          required:true
       },
       birthday:{
        type:String
       },
       gender:{
        type:String,
          required:true
       }
 })

 module.exports = mongoose.model('People', modelSchema)